package com.usian.search.feign;

import com.usian.model.article.pojos.ApArticle;
import com.usian.model.article.pojos.ApArticleContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("leadnews-article")
public interface ArticleFeign {

    @PostMapping("/api/v1/article/findArticleList")
    public List<ApArticle> findArticleList();

    @PostMapping("/api/v1/articleContent/findByArticleId")
    public ApArticleContent findByArticleId(@RequestParam Long articleId);
}
